package com.itcast.abstractdemo.Demo03;

/*
要写注释哦!!!
*/
public class Techer extends Employee{
    private int count;

    public Techer() {
    }

    public Techer(String name, int age, int count) {
        super(name, age);
        this.count = count;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @Override
    public void otherInfo() {
        System.out.println("我已经服务了"+count+"位学生了！");
    }
}
